<?php
$getids = $_POST['getids'];
require('../../cofd/common.php');
$stmt = $conn->prepare("SELECT exmatid,exmatname,exmatfrom,exmatzt,exmatother FROM exam_page WHERE linkshare = ?");
if ($stmt === false) {
    echo json_encode(array('status' => 500, 'msg' => '准备查询失败: ' . $mysqli->error));
    exit();
}
$stmt->bind_param('s', $getids); 
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
    while ($row = $result->fetch_assoc()) {
        $list_result = $row;
    }
    echo json_encode(array('status' => 200, 'msg' => '查询成功', 'data' => $list_result));
} else {
    echo json_encode(array('status' => 404, 'msg' => '查询失败'));
}
$stmt->close();
$conn->close();